package com.itheima.demo.demo05;

import javax.security.auth.login.FailedLoginException;
import java.io.FileNotFoundException;

public class Exception {
    public static void main(String[] args) {
        try {
            method(null);
        } catch (FileNotFoundException e) {
           e.printStackTrace();
        }
        System.out.println("代码执行");
    }

    public static void method(String path) throws FileNotFoundException {
        if(path==null){
            throw new FileNotFoundException("路径错误");

        }
    }




}
